package org.rich.charlesmurphy.model;

import org.ddevil.data.BeanData;

/**
 * A resource.
 * @author Rich
 */
public class Resource extends BeanData {
	private static final long serialVersionUID = -8085923074832029617L;

	private String url;
	private String method;
	private String path;
	private ResourceType resourceType;

	public Resource(Request request) {
		url = request.getUrl();
		method = request.getMethod();
		path = request.getPath();
		resourceType = request.getResourceType();
	}

	public String getUrl() {
		return url;
	}

	public String getMethod() {
		return method;
	}

	public String getPath() {
		return path;
	}

	public ResourceType getResourceType() {
		return resourceType;
	}

}
